<template>
  <div class="footer">
    <div class="item">
      <router-link to="home" class="nav-item" active-class="nav-color">
        <van-icon name="wap-home-o" size="30" />
        首页
      </router-link>
    </div>
    <div class="item">
      <router-link to="carts" class="nav-item" active-class="nav-color">
        <van-icon name="cart-o" size="30"/>
        购物车
      </router-link>
    </div>
    <div class="item">
      <router-link to="order" class="nav-item" active-class="nav-color">
        <van-icon name="coupon-o" size="30"/>
        订单
      </router-link>
    </div>
    <div class="item">
      <router-link to="my" class="nav-item" active-class="nav-color">
        <van-icon name="user-o" size="30"/>
        我的
      </router-link>
    </div>
  </div>

</template>

<script setup lang='ts'>

</script>

<style scoped lang="less">
.footer {
  display: flex;
  background: #fff;
  border-top: 1px solid #eee;
  font-size: 12px;
  .item {
    flex: 1;
    .nav-color{
      color: #ffc400;
    }
    .nav-item {
      display: flex;
      flex-flow: column;
      align-items: center;
    }
  }
}
</style>